<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Dojo, javascript, integration, dojo module, loading, test, fubar_perl" />
<meta name="description" content="Dojo module loading test page!" />
<meta name="MSSmartTagsPreventParsing" content="true" />
<meta name="distribution" content="Global" />
<meta name="author" content="Dwight Vietzke" />
<meta http-equiv="Reply-to" content="dwight_vietzke@yahoo.com" />
<meta name="classification" content="mobile internet website software" />
<meta name="copyright" content="Copyright©2008-2009 - OpenSiteMobile" />

	<title>Dojo Module Load</title>

<script type="text/javascript" charset='utf-8' src="./msos/dojo_config.js"></script>
<script type="text/javascript" charset='utf-8' src="./dojo/dojo.js"></script>

<script type='text/javascript'>
/* <![CDATA[ */

dojo.require("msos.common");
dojo.require("msos.dumper");
dojo.require("msos.google");
dojo.require("msos.number_ctrl");
dojo.require("msos.tab");
dojo.require("msos.input_events");
dojo.require("msos.input_select");
dojo.require("msos.selection");
dojo.require("msos.characters");
dojo.require("msos.on_screen_kb");
dojo.require("msos.calendar");
dojo.require("msos.calendar_config");
dojo.require("msos.colortool");
dojo.require("msos.colortool_calc");
dojo.require("msos.validate");

function report_loading() {

	var text = "All 'required' modules loaded correctly!";

	// This section is useful for testing and demo purposes.
	var config_ul = dojo.byId('configuration');
	config_ul.innerHTML = '';	// Clear na ref (for valid xhtml)
	for (var parm in djConfig) {
	    if (typeof(djConfig[parm]) == 'boolean') {
		var list_elm   = document.createElement("li");
		var inpt_elm_t = document.createElement("input");
		var inpt_elm_f = document.createElement("input");
		inpt_elm_t.type = "radio";
		inpt_elm_f.type = "radio";
		inpt_elm_t.name = parm;
		inpt_elm_f.name = parm;
		inpt_elm_t.value = 'true';
		inpt_elm_f.value = 'false';
		if (djConfig[parm])	inpt_elm_t.checked = true;
		else			inpt_elm_f.checked = true;
		var true_txt = document.createTextNode('T ');
		var list_txt = document.createTextNode('F ' + parm); 
		list_elm.appendChild(inpt_elm_t);
		list_elm.appendChild(true_txt);
		list_elm.appendChild(inpt_elm_f);
		list_elm.appendChild(list_txt);
		config_ul.appendChild(list_elm);
	    }
	}

	// Delay a little to allow 'msos.common.debug_window' to open and to find 'msos.common.debug_element'
	setTimeout(function() { msos.common.debug_write(text); }, 3000);
	if (!djConfig.isDebug)	alert(text);
	else			console.info(text);
}

// Start our virtual keyboard
dojo.addOnLoad(report_loading);

/* ]]> */
</script>

<link rel="stylesheet" type='text/css' charset='utf-8' href="./msos/style/fubar.css" media='screen, handheld' />
<link rel='shortcut icon' href='./msos/images/osm.ico' />

</head>
<body>

<div id='body'>

<div class='marquee'>
    <img id='osm_logo_small' src='./msos/images/osm_logo_sml.jpg' class='marquee_img' alt="OpenSiteMobile" />
</div>

<div class='header'>
<a href='javascript: history.go(-1);' title='Return to the previous page'> Back </a>::
<a href='./index.html' title='Back to index page'> Home </a>
</div>

<h1>Dojo Module Loading</h1>

<p>This page provides simple feedback about the loading of dojo style modules. Modules 'required'
   by this page may load correctly, yet call other missing or corrupt modules which do not
   (and is part of the test). Have a look at your browser's error console too.</p>
<p>This page also highlights some Dojo and MobileSiteOS™ debugging functions. Try changing
   the page debugging parameters below to see what happens.</p>

<noscript>
<h2><span class='alert'>Your browser&#39;s JavaScript compiler is turned off or isn&#39;t available.</span></h2>

<p>You will need to enable JavaScript in your browser before this page will do anything!</p>
</noscript>

<h3>Page Debugging</h3>

<form accept-charset='utf-8' action='dojo_module_load.html' method='get'>
<div class='list_large'>

<ul id='configuration'><li>Not Available</li></ul>

<input type="submit" value="Reload Page" />

</div>
</form>

<h3 title='Testing utf-8 encoded characters'>Iñtërnâtiônàlizætiøn</h3>

<div class='footer'>
<a href='javascript: history.go(-1);' title='Return to the previous page'> Back </a>::
<a href='./index.html' title='Back to index page'> Home </a>
</div>

<div id='copyright'>
<span class='no_br'>Powered by:
   <a href='http://www.opensitemobile.com'>
  <span class='bold_text' title="Copyright©2008-2009 OpenSiteMobile - All rights reserved">MobileSiteOS</span></a>™</span>
</div>

</div> <!-- end 'body' div -->

</body>
</html>